package net.zhengxinyun.performance.service.indicators;

import net.zhengxinyun.performance.entity.CountryScoreEntity;
import net.zhengxinyun.performance.entity.TokenEntity;
import net.zhengxinyun.performance.filter.CountryIndicatorsFilter;
import net.zhengxinyun.performance.filter.CountryScoreFilter;
import net.zhengxinyun.performance.filter.IndexFilter;

import java.util.List;

/**
 * @Auther: hyp
 * @Date: 2018/11/19 11:14
 */
public interface CountryScoreService {
    int delete(CountryScoreEntity countryScoreEntity);

    int update(CountryScoreEntity countryScoreEntity);

    int insert(CountryScoreEntity countryScoreEntity);

    List<CountryScoreFilter> query(CountryScoreFilter countryScoreFilter);

    int adminPass(CountryScoreEntity countryScoreEntity);

    int responsiblePass(CountryScoreEntity countryScoreEntity);

    int noPass(CountryScoreEntity countryScoreEntity);

    String adminAllPass(List<CountryScoreEntity> list);

    String responsibleAllPass(List<CountryScoreEntity> list);

    String setFirstFinalScore(CountryScoreEntity countryScoreEntity);

    List<CountryIndicatorsFilter> queryFirstIndicatorsScore(IndexFilter indexFilter);

    List<CountryIndicatorsFilter> queryFirstIndicatorsScoreReverse(IndexFilter indexFilter);

    Double queryForSumScore(IndexFilter indexFilter);

    CountryScoreEntity selectCityScore(String index,String departcode,String datetime);
}
